import request from "@/utils/request";

export function train(data){
 // console.log(JSON.stringify(data))
  return request({
    url:'/analysis/categoryTrain',
    method:'post',
    headers:{
      'Content-Type':'application/json'
    },
    data:JSON.stringify(data)
  })
}

export function saveCategory(category){
  return request({
    url:'/analysis/saveCategory',
    method:'put',
    data:category
  })
}

export function getCategory(){
  return request({
    url:'/analysis/categoryList',
    method:'get'
  })
}
